
 package com.ami.kvm.jviewer.gui;
 
 import com.ami.kvm.jviewer.JViewer;
 import com.ami.kvm.jviewer.common.oem.IOEMManager;
 import com.ami.kvm.jviewer.kvmpkts.Mousecaliberation;
 import java.awt.Dimension;
 import java.awt.Toolkit;
 import java.net.URL;
 import javax.swing.JFrame;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 public class FSFrame
   extends JVFrame
 {
   private static final long serialVersionUID = 1L;
   private FSMenuBar m_menuBar;
   private String m_label;
   
   public FSFrame()
   {
     if (JViewer.isStandalone()) {
       JViewer.getMainFrame().setUndecorated(true);
     }
     setResizable(false);
     Dimension localDimension = Toolkit.getDefaultToolkit().getScreenSize();
     setSize(localDimension);
     this.m_menuBar = new FSMenuBar(this);
   }
   
 
 
 
 
 
 
   public JVMenu getMenu()
   {
     return this.m_menuBar.getFSMenu();
   }
   
 
 
 
 
 
   public void setStatus(String paramString) {}
   
 
 
 
 
 
   public void resetStatus() {}
   
 
 
 
 
   public void exitApp()
   {
     windowClosed();
   }
   
 
 
 
 
   public void setWndLabel(String paramString)
   {
     this.m_label = paramString;
     String str = JViewerApp.getInstance().getResolutionStatus();
     
     if ((!Mousecaliberation.THRESHOLDFLAG) && (!Mousecaliberation.ACCELERATION_FLAG)) {
       if (str != null) {
         this.m_menuBar.setIDLabel(m_serverIP + " - " + "[" + str + "] - " + paramString);
       } else
         this.m_menuBar.setIDLabel(m_serverIP + " - " + paramString);
       if (JViewerApp.getOEMManager().setFSFrameTitle(paramString) == 0) {
         setTitle(JViewer.getTitle() + "[" + m_serverIP + "] - " + paramString);
       }
     }
   }
   
 
 
   public void showWindow()
   {
     this.m_menuBar = new FSMenuBar(this);
     this.m_menuBar.showMenu();
     if (JViewer.isStandalone()) {
       URL localURL = JViewer.class.getResource("res/jviewer.jpg");
       
       JViewer.getMainFrame().setIconImage(Toolkit.getDefaultToolkit().getImage(localURL));
     }
   }
   
 
 
 
   public void hideWindow()
   {
     this.m_menuBar.cancelTimer();
     this.m_menuBar.dispose();
   }
   
 
 
   public void refreshTitle()
   {
     if (JViewerApp.getOEMManager().setFSFrameTitle(this.m_label) == 0) {
       setTitle(JViewer.getTitle() + " [" + m_serverIP + "] - " + this.m_label);
     }
   }
   
 
 
 
   public FSMenuBar getM_menuBar()
   {
     return this.m_menuBar;
   }
 }


/* Location:              D:\Users\tianlin\Downloads\JViewer.jar!\com\ami\kvm\jviewer\gui\FSFrame.class
 * Java compiler version: 5 (49.0)
 * JD-Core Version:       0.7.1
 */